updating oE size

size

include map.e 
namespace map 
public function size(map the_map_p) 

returns the number of entries in a map.

Parameters:

the_map_p : the map being queried

Returns:

An integer, the number of entries it has.

Comments:

For an empty map, size will be zero

Example 1:
map the_map_p 
put(the_map_p, 1, "a") 
put(the_map_p, 2, "b") 
? size(the_map_p) -- outputs 2 
See Also:

statistics

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu